package com.ft.oa.service.industryService.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ft.oa.domain.industrys.Sysdictionary;
import com.ft.oa.mapper.industrysMapper.ISysdictionaryMapper;
import com.ft.oa.service.industryService.ISysdictionaryService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class SysdictionaryImpl implements ISysdictionaryService {
    @Resource
    private ISysdictionaryMapper iSysdictionaryMapper;
    @Override
    public int hydicnum(String kind,String valuename) {
        //行业授权维护参与人
        QueryWrapper<Sysdictionary> wrappercontri = new QueryWrapper();
        wrappercontri.eq("kind",kind);
        wrappercontri.eq("value_name",valuename);
        Integer integer = iSysdictionaryMapper.selectCount(wrappercontri);
        return integer;
    }
}
